//
//  GGTools.h
//  unzip
//
//  Created by yg on 2021/11/15.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>


@interface GGTools : NSObject

//系统提示框
+ (void)showActionSheetWithTitle:(NSString *)title message:(NSString *)message items:(NSArray *)items style:(UIAlertControllerStyle)style atController:(UIViewController *)controller action:(void(^)(NSUInteger itemIndex))itemAction;

//带输入框的系统提示框
+ (void)showTextFieldActionWithTitle:(NSString *)title message:(NSString *)message placeholder:(NSString *)placeholder items:(NSArray *)items atController:(UIViewController *)controller action:(void(^)(NSUInteger itemIndex,UITextField *textField))itemAction;

//快速弹出一句话
+ (void)showToast:(NSString *)toast;

//代理是否开启的判断 一般抓包时会开启代理
+ (BOOL)getProxyStatus;

@property (class,readonly) UIWindow *mainWindow;
@property (class,readonly) CGFloat safeAreaBottom;//返回安全距离的底边
@property (class,readonly) CGFloat safeAreaTop;//返回安全距离的顶边
@property (class,readonly) CGFloat safeStatusBarBottom;//返回状态栏底边
@property (class,readonly) CGFloat safeNavigationBottom; //返回导航栏底边
@property (class,readonly) float zoomProportion;//返回在标准375宽度的缩放比例

@end

